import logging

logging.basicConfig(level=logging.INFO, format="%(asctime)s:%(levelname)s:%(name)s : %(message)s", filename='biQazo.log', filemode='w')
console = logging.StreamHandler()
console.setLevel(logging.INFO)
# set a format which is simpler for console use
formatter = logging.Formatter('%(levelname)-8s %(message)s')
# tell the handler to use this format
console.setFormatter(formatter)
# add the handler to the root logger
logging.getLogger('').addHandler(console)



